package com.fengze.business.mapper;

import java.util.List;
import com.fengze.business.domain.InquiryRecord;
import com.fengze.business.domain.Products;
import com.fengze.business.vo.HistoryProduct;
import com.fengze.business.vo.InquiryRecordVO;

/**
 * 询价记录Mapper接口
 * 
 * @author lug
 * @date 2024-02-01
 */
public interface InquiryRecordMapper 
{
    /**
     * 查询询价记录
     * 
     * @param id 询价记录主键
     * @return 询价记录
     */
    public InquiryRecord selectInquiryRecordById(Long id);

    /**
     * 查询询价记录列表
     * 
     * @param inquiryRecord 询价记录
     * @return 询价记录集合
     */
    public List<InquiryRecord> selectInquiryRecordList(InquiryRecord inquiryRecord);

    /**
     * 新增询价记录
     * 
     * @param inquiryRecord 询价记录
     * @return 结果
     */
    public int insertInquiryRecord(InquiryRecord inquiryRecord);

    /**
     * 修改询价记录
     * 
     * @param inquiryRecord 询价记录
     * @return 结果
     */
    public int updateInquiryRecord(InquiryRecord inquiryRecord);

    /**
     * 删除询价记录
     * 
     * @param id 询价记录主键
     * @return 结果
     */
    public int deleteInquiryRecordById(Long id);

    /**
     * 批量删除询价记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInquiryRecordByIds(Long[] ids);

    int total();

    List<InquiryRecordVO> selectVOList(InquiryRecord record);

    List<HistoryProduct> selectHistoryList(Products products);

    String queryLastCode();

    Integer selectMaxInquiryNumber(Long earlyProjectId);

    int countByStageProjectId(Long stageProjectId);
}
